#ifndef _Thread_HPP_
#define _Thread_HPP_
#include <pthread.h>
namespace tp{

class Thread{
public:
    Thread();
    ~Thread();
    void start();
    void join();
private:
    static void* start_routine(void* arg);
    virtual void run() = 0;
private:
    pthread_t _pthid;
    bool _isrunning;
};

}
#endif

